<%@page import="board.BoardMyba"%>
<%@page import="board.BoardVo"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<style>
#boardview_main{
	margin:auto;
	width:700px;
}
#boardview_subject1,#boardview_subject2{
	display:inline-block;
}
#boardview_subject{
	width:430px;
	display:inline-block;
	border:2px solid #aaaaaa;
}
#boardview_mdate{
	width:255px;
	display:inline-block;
	border:2px solid #aaaaaa;
}
#boardview_content{
	width:695px;
	height:400px;
	border:2px solid #aaaaaa;
	
}
#boardview_subject3-1,#boardview_subject3-2,#boardview_subject3-3,#boardview_subject3-4,#boardview_btn{
	display:inline-block;
}
#boardview_btn{
	float:right;
}

</style>
<script src='./board_mybatis/board.js'></script>
</head>
<body>
<jsp:useBean id="boardVo" class="board.BoardVo"/>
<jsp:setProperty property="*" name="boardVo"/>
<%

BoardMyba mybatis = new BoardMyba();
mybatis.setBoardVo(boardVo);
BoardVo vo = mybatis.view();


%>
<h2 style="text-align:center;">상세보기</h2>
 <form id='boardview_main' name='frm' method='post' action='MyHome.jsp?inc_content=./guest/modify_result.jsp' >
<label id ='wirter'>작성자 : <%=vo.getMid()%> | 조회수 : <%=vo.getHit()%></label><br/>
<label id='wirtedate'>작성일 : <%=vo.getMdate()%></label><br/>

<div id='boardview_subject1'>
	<label>제목 : <%=vo.getSubject()%></label>
</div>
<div id='boardview_subject2'>
	
</div>


<div id='boardview_content'><textarea rows="26" cols="96" name='content' readonly><%=vo.getContent()%></textarea></div>


<div id='boardview_bot'>
<div id='boardview_subject3'>
	<%if(vo.getFilename() != null && vo.getFilename() != ""){ %>
	<div id='boardview_subject3-1'>첨부파일 <a href='#' onclick="fileDownload('<%=vo.getFilename()%>')"><%=vo.getFilename()%></a> </div>
	<%} %>
	<div id='boardview_btn'>
		<input type='button' id ='btnlist'  value='목록'>
		<input type='button' id ='btnmodify' value='수정' onclick="modi('<%=vo.getSerial()%>')">
		<input type='button' id = 'btnreple' value='답글' onclick="rep('<%=vo.getSerial()%>','<%=vo.getGrp()%>','<%=vo.getDeep()%>')">
		<input type='button' id ='btndelete' value='삭제' onclick="del('<%=vo.getSerial()%>','<%=vo.getFilename()%>')")>
	</div>
</div>
		<input type='hidden' id='serial' name='serial' value="<%=vo.getSerial()%>">
</div>
</form> 

<script>init();</script>
</body>
</html>